<?php
$tittleText = '';
require("{$CfgPara->root}/view/web/tittle_back_bar.web.v.php");
?>
<div id="topic_show_div" class="web-topic-show">
    <img class="am-circle" alt="" src="<?= $CfgPara->httproot ?>/topic_pic/<?= $topicImg ?>" width="80" height="80"/>
    <div style="padding:5px 30px">
        <div class="am-text-default" style="padding-top:10px">
            <b class="web-tittle-color"><?= $topicMsg->Name ?></b>
        </div>
        <div style="padding-top:15px">
            <span class="app-main-color am-text-xs">
                <?php if ($topicMsg->State == 1) { ?>
                    <span class="web-main-color"><?= formatDataSize($topicMsg->WorksCount) ?></span>
                    <span class="web-gray-color">篇作品&nbsp;&bull;&nbsp;<span
                                id="topic_up_count_<?= $topicMsg->Id ?>"><?= formatDataSize($topicMsg->UpCount) ?></span>人关注</span>
                <?php } else { ?>
                    <i class="am-icon am-icon-edit am-icon-fw"></i>草稿
                <?php } ?>
            </span>
        </div>
        <div style="height:43px; padding-top:15px">
            <?php if ($isRecommend === true) { ?>
                <button id="btn_topic_up" class="am-btn app-btn-followed am-radius am-btn-sm"
                        data-topic-id="<?= $topicMsg->Id ?>"
                        onclick="topic_up(this)" style="padding:3px 10px;margin-right: 5px;">
                    已关注
                </button>
            <?php } else { ?>
                <a class="am-btn app-btn-follow am-radius am-btn-sm"
                   data-topic-id="<?= $topicMsg->Id ?>"
                   onclick="topic_up(this)" style="padding:3px 10px;margin-right: 5px;">
                    加关注
                </a>
            <?php } ?>
            <a class="am-btn app-btn-followed am-radius am-btn-sm"
               data-forward="controller=works_list&list_type=11&topic_id=<?= $topicMsg->Id ?>"
               onclick="act_content(this)"
               style="padding:3px 10px;">
                &nbsp;&nbsp;投稿&nbsp;&nbsp;
            </a>
        </div>
        <div class="am-text-xs web-gray-color" style="padding: 10px 0;">
            您有<?= $workCount ?>个作品在此专题
        </div>
    </div>
</div>
<div style="height: 10px;"></div>